package com.yuewen.permissioncheck.asm.checker;

/**
 * SubscriberId
 *
 * @author zhanglulu
 */
public class GetSubscriberIdPermission extends BasePermission {
  @Override
  boolean check(InvokeParam param) {
    return "getSubscriberId".equals(param.methodName)
      && "()Ljava/lang/String;".equals(param.methodDesc)
      && "android/telephony/TelephonyManager".equals(param.methodOwnClass);
  }

  @Override
  String invokeHookMethodName() {
    return "invokeGetSubscriberId";
  }
}
